package com.leesche.zcsp.node.web.dao;

import java.util.List;

import com.leesche.zcsp.node.web.model.PubDiscount;
import com.leesche.zcsp.node.web.model.PubDiscountCriteria;
import com.leesche.zcsp.node.web.service.impl.data.read.PubDiscountDto;
import com.leesche.zcsp.node.web.service.impl.data.read.QueryPubDiscountCondition;


public interface PubDiscountDao  extends BaseDao<PubDiscount, PubDiscountCriteria,PubDiscountDto,QueryPubDiscountCondition, Long>{
	/**
	 * 
	* @Title: selectByShortCode 
	* @Description: TODO(通过简码查询优惠套餐) 
	* @param @param condition
	* @param @return   
	* @return PubDiscount   
	* @throws
	 */
	List<PubDiscountDto> selectByShortCode(QueryPubDiscountCondition condition);

	List<PubDiscountDto> findPubDiscountList(QueryPubDiscountCondition condition);

	/**
	 * @Title: insertBatchDiscount(List<PubDiscount> discounts)
	 * @Description: TODO( 批量添加设备套餐 )
	 * @author Jerry
	 * @date 2016-11-04 01:03:16
	 * @param discounts 设备套餐集合
	 * @return 数据库操作受影响的行数
	 */
	int insertBatchDiscount(List<PubDiscount> discounts);

}